package lion.soa.dubbo;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import lion.soa.dubbo.anno.DubboRef;

/**
 * Dubble Service管理类
 * 
 * @author lion
 * @email hl_0074@sina.com
 * @date 2016年4月18日
 */
public class DubboServiceManager {

	private static final List<DubboRef> refs = new ArrayList<>();

	public static void regService(DubboRef ref) {

		refs.add(ref);
	}

	public static List<DubboRef> getDubboRefs() {

		return Collections.unmodifiableList(refs);
	}
}
